package com.hmsproject.db.mongodb;

import java.net.Inet4Address;

public class HMSMongoDBConstants{
	private static HMSMongoDBConstants hmsConstants = new HMSMongoDBConstants();
	
	private HMSMongoDBConstants() {
		
		try{
			//dbServerAddress = Inet4Address.getLocalHost().getHostAddress();
			//dbServerAddress = "23.235.221.46";
			dbServerAddress = "localhost";
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public String getDbServerAddress() throws Exception{
		return dbServerAddress;
	}
	public int getDbServerPort() {
		return dbServerPort;
	}
	
	public String getDbName() {
		return dbName;
	}	
	
	private String dbServerAddress = "localhost";
	private int dbServerPort=27017;
	private String dbName="hmsdb";
	
	public static HMSMongoDBConstants getInstance(){
		return hmsConstants;
	}
	

}
